#type1

create_xmodem_tools_dir=../prebuilts/bsp/tools/flash_upgrade

mkdir -p ./out

cd uboot


make  O=.build distclean
make  O=.build 
cd -

#copy uboot to flash_upgrade dir
cp -arf ./uboot/uboot/.build/u-boot.bin $create_xmodem_tools_dir
#create xmodem.img
pushd $create_xmodem_tools_dir
./mkflashimgv4 QM102V_normal.ini
popd
#copy xmodem.img to output dir
cp -arf $create_xmodem_tools_dir/xmodem.img ./out


